package com.hrm.houfei.dao;

import java.util.List;

import org.hibernate.criterion.DetachedCriteria;

import com.hrm.houfei.po.Jobchange;

public interface IJobchangeDAO {

	/**
	 * 多条件分页模糊查询
	 * 
	 * @param criteria
	 *            离线查询(带条件)
	 * @param start
	 *            索引
	 * @param limit
	 *            每页要显示的记录的条数
	 * @return 当前页的所有记录
	 */
	public List<Jobchange> findByPage(DetachedCriteria criteria, int start,
			int limit);

	/**
	 * 根据条件获取总记录的条数
	 * 
	 * @param criteria
	 *            离线查询(带条件)
	 * @return 总计记录的条数
	 */
	public int getListCountByCriteria(DetachedCriteria criteria);

	/**
	 * 更新员工调动信息
	 * 
	 * @param persistentInstance
	 */
	public void update(Jobchange persistentInstance);

	public abstract void save(Jobchange transientInstance);

	public abstract void delete(Jobchange persistentInstance);

	public abstract Jobchange findById(java.lang.Integer id);

	public abstract List findByExample(Jobchange instance);

	public abstract List findByProperty(String propertyName, Object value);

	public abstract List findAll();

	public abstract Jobchange merge(Jobchange detachedInstance);

	public abstract void attachDirty(Jobchange instance);

	public abstract void attachClean(Jobchange instance);

}